<?php 
include_once('connection/connection.php');
include('config.php');
include('header.php');
include('menu.php');
$sc="RWSS";
?>
<html>
<head>
<meta http-equiv="Content-Language" content="en-us">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<link href="css/style_question.css" type="text/css" rel="stylesheet" />
<script language="javascript" type="text/javascript" src="js/validate_rwss.js"></script>
<script language="Javascript" type="text/javascript" src="js/ajaxFunction_rwss.js"></script>
<script language="Javascript" type="text/javascript" src="js/ajaxFunction1_q1.js"></script>
<script language=javascript>
function mult()
{
	var value1=document.getElementById('popul_benefited').value;
	var value2=Math.round(value1 * 1.29);
	//var value2=Math.round(value1 * 1.4);
	document.getElementById('present_popul').value=value2;	
}
function mult2()
{
	var value1=document.getElementById('factor1').value;
	var value2=document.getElementById('population_benefited1').value;
	var value3=Math.round(value1 * value2);
	document.getElementById('present_population1').value=value3;
	alert('Value of Population Benefited Field is '+ value2 +', Present Population is '+ value3 +' and Population Factor is ' + value1);	
}
</script>
<script language="javascript" type="text/javascript">

function showID()
{
//Define calendar(s): addCalendar ("Unique Calendar Name", "Window title", "Form element's name", Form name")
var num=document.getElementById("num_source").value;
var i=1;
for (i=1;i<=num;i++)
{
addCalendar("Calendar" + i, "Select Date", "testing_date" + i, "questionnaire1");
}
// default settings for English
// Uncomment desired lines and modify its values
// setFont("verdana", 9);
 setWidth(90, 1, 15, 1);
// setColor("#cccccc", "#cccccc", "#ffffff", "#ffffff", "#333333", "#cccccc", "#333333");
// setFontColor("#333333", "#333333", "#333333", "#ffffff", "#333333");
// setFormat("yyyy/mm/dd");
// setSize(200, 200, -200, 16);

// setWeekDay(0);
// setMonthNames("January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December");
// setDayNames("Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday");
// setLinkNames("[Close]", "[Clear]");
}
function showHPID()
{
//Define calendar(s): addCalendar ("Unique Calendar Name", "Window title", "Form element's name", Form name")
var num1=document.getElementById("hp_no").value;
var i=1;
for (i=1;i<=num1;i++)
{
addCalendar("HPCalendar" + i, "Select Date", "HPtesting_date" + i, "questionnaire1");
}
// default settings for English
// Uncomment desired lines and modify its values
// setFont("verdana", 9);
 setWidth(90, 1, 15, 1);
// setColor("#cccccc", "#cccccc", "#ffffff", "#ffffff", "#333333", "#cccccc", "#333333");
// setFontColor("#333333", "#333333", "#333333", "#ffffff", "#333333");
// setFormat("yyyy/mm/dd");
// setSize(200, 200, -200, 16);

// setWeekDay(0);
// setMonthNames("January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December");
// setDayNames("Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday");
// setLinkNames("[Close]", "[Clear]");
}
function showSPID()
{
//Define calendar(s): addCalendar ("Unique Calendar Name", "Window title", "Form element's name", Form name")
var num1=document.getElementById("sp_no").value;
var i=1;
for (i=1;i<=num1;i++)
{
addCalendar("SPCalendar" + i, "Select Date", "SPtesting_date" + i, "questionnaire1");
}
// default settings for English
// Uncomment desired lines and modify its values
// setFont("verdana", 9);
 setWidth(90, 1, 15, 1);
// setColor("#cccccc", "#cccccc", "#ffffff", "#ffffff", "#333333", "#cccccc", "#333333");
// setFontColor("#333333", "#333333", "#333333", "#ffffff", "#333333");
// setFormat("yyyy/mm/dd");
// setSize(200, 200, -200, 16);

// setWeekDay(0);
// setMonthNames("January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December");
// setDayNames("Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday");
// setLinkNames("[Close]", "[Clear]");
}
</script>

<title>Questionnaire No.1 (RWSS)</title>
<style type="text/css">
<!--
.style1 {color: #FFFFFF}
-->
</style>
</head>
<body onLoad="enable_sanc(false)">
<?php
date_default_timezone_set('Asia/Kolkata');
$stamp = time();
$getdate = getdate($stamp);
	////////////////////////////////////////// function for dob starts //////////////
function dpulldown($name,$d,$m,$y)//This function will provide the pulldown for date
{
	$stamp = time();
	$getdate = getdate($stamp);
	$months = array(1 => 'January','February','March','April','May','June','July','August','September','October','November','December');
	echo'<select name="'.$name.'date" class="date">';
	for($date = 1; $date <= 31; $date++)
	{
		echo'<option value="'.$date.'" ';if($d == $date) echo'selected="selected"'; echo'>'.$date.'</option>';
	}
	echo'</select>';
	echo'<select name="'.$name.'month" class="date">';
	foreach($months as $key => $value)
	{
		echo'<option value="'.$key.'" ';if($m == $key) echo'selected="selected"'; echo'>'.$value.'</option>';
	}
	echo'</select>';
	echo'<select name="'.$name.'year" class="date">';
	for($year = 2005; $year <= ($getdate['year']); $year++)
	{
		echo'<option value="'.$year.'" ';if($y == $year) echo'selected="selected"'; echo'>'.$year.'</option>';
	}
	echo'</select>';
}
if(isset($_POST['submit']))
{
		$fclick = true;
		$dob = $_POST['dobyear'].'-'.$_POST['dobmonth'].'-'.$_POST['dobdate'];
		$id=$_POST['id'];
		$form_id=$_POST['form_id'];
		$_SESSION['form_id']=$form_id;
		 $district=$_POST['muldist'];
		
		 $block=$_POST['mulblock'];
		
		 $tehsil=$_POST['mulTehsil'];
		    $tehsil=trim($tehsil);
			$tehsil=explode(" ",$tehsil);
         	$tehsil=implode(",",$tehsil);
			
		 $panchayat=$_POST['mulpanchayat'];
		
		 $village=$_POST['mulvillage'];
		
		$cvc=$_POST['cvc'];
		$type_scheme=$_POST['rwss'];	
		//$type_scheme=implode(',',$type_scheme); 
		$name_scheme=$_POST['name_scheme'];
		$year=$_POST['year'];
		$capital_cost=$_POST['capital_cost'];
		if($_POST['scheme_sactioned']!='Other')
		{
			$scheme_sactioned=$_POST['scheme_sactioned'];
		}
		else
		{
			$scheme_sactioned=$_POST['scheme_sactioned_other'];
		}
		//$scheme_sactioned=$_POST['scheme_sactioned'];
		//$scheme_sactioned_other=$_POST['scheme_sactioned_other'];
		//$scheme_sactioned=implode(',',$scheme_sactioned); 
		//$scheme_sactioned=$scheme_sactioned . $scheme_sactioned_other;
		//echo $scheme_sactioned;
		//exit();
		$popul_benefited=$_POST['population_benefited1'];
		$present_popul=$_POST['present_population1'];
		$num_source=$_POST['num_source'];
		$hp_no=$_POST['hp_no'];
		$sp_no=$_POST['sp_no'];
		
		$q1="INSERT INTO tbl_dtls_q1_main(id, form_id, district_id, date, block_id, tehsil_id, panchayat_id, village_id, cvc, type_scheme, name_scheme, year_comm, capital_cost, scheme_sactioned, population_benefited, present_population, no_sources, hp_nos, sp_nos, post_date) VALUES ('$id', '$form_id', '$district', '$dob','$block', '$tehsil', '$panchayat', '$village', '$cvc', '$type_scheme', '$name_scheme', '$year', '$capital_cost', '$scheme_sactioned', '$popul_benefited', '$present_popul', '$num_source', '$hp_no', '$sp_no', NOW())"; 
		
		
		
		
		$r1=mysql_query($q1);
			if($r1)
			{
				//header('Location: critical_form2.php');
				$relocatePage=true;
				//echo "success 1";		
			}
			else 
			{
				$errorIns="Error inserting RWSS table <br>";
			}
		$q2="SELECT DISTINCT habitation_code, habitation_name from tbl_lookup_location where village_id IN($village)";
		$r2=mysql_query($q2);
		$num_rows = mysql_num_rows($r2);
		//$_SESSION['num_rows']=$num_rows;
		//echo $num_rows;
		$q3="SELECT id FROM tbl_dtls_q1_main where form_id='$form_id'";
		$r3=mysql_query($q3);
		$x=mysql_fetch_array($r3);
		$loc_id=$x['id'];
		$_SESSION['loc_id']=$loc_id;
		for($i=1; $i<=$num_rows; $i++)
		{
			$hname = 'name_habi'.$i;
			$hcode = 'habi_code'.$i;
			$type_habit='type_habit'.$i;
			$status = 'status'.$i;
			$HP_no='HP_no'.$i;
			$SP_no='SP_no'.$i;
			
			$hname=$_POST[$hname];	
			$hcode=$_POST[$hcode];
			$type_habit=$_POST[$type_habit];
			$status=$_POST[$status];
			$HP_no=$_POST[$HP_no];
			$SP_no=$_POST[$SP_no];
			
			$q4="INSERT INTO tbl_dtls_q1_oh(loc_id, habit_name, habit_code, type_habit,HP,SP, status_e_nt) VALUES ('$loc_id', '$hname', '$hcode', '$type_habit','$HP_no','$SP_no', '$status')";
			$r4=mysql_query($q4);	
		}	
		
		if($r4)
			{
				$relocatePage=true;
				//header('Location: critical_form2.php');
				//echo "success 2";
			}
			else 
			{
				$errorIns.="Error inserting habit table <br>";
			}
		for($i=1; $i<=$num_source; $i++)
		{
			$source='source'.$i;
			$yield_min='yield_min'.$i;
			$yield_max='yield_max'.$i;
			$water_table_min='water_table_min'.$i;
			$water_table_max='water_table_max'.$i;
			$current_status='current_status'.$i;
			
			$source=$_POST[$source];
			$yield_min=$_POST[$yield_min];
			$yield_max=$_POST[$yield_max];
			$water_table_min=$_POST[$water_table_min];
			$water_table_max=$_POST[$water_table_max];
			$current_status=$_POST[$current_status];
			
			$q5="INSERT INTO tbl_dtls_q1_sws(loc_id, source, yield_min, yield_max, water_table_min, water_table_max, current_status) VALUES ('$loc_id', '$source', '$yield_min', '$yield_max', '$water_table_min', '$water_table_max', '$current_status')";
				$r5=mysql_query($q5);	
		}	
		if($r5)
		{
			
				//header('Location: questionnaire3_2.php');
				//echo "success 1";	
				$relocatePage=true;	
		}else 
			{
				$errorIns="Error inserting sws table <br>";
			}
			
		if($errorIns==0) 
			{
				header('Location: questionnaire1_2.php?sch='.$sc);
			}
			else 
			{
				echo $errorIns;exit;
			}
							
}
else
{
	$fclick = false;
	$flag=0;
}
?>
<div align="center" style="margin-top:10px;">
<form action="" method="post" enctype="multipart/form-data" name="questionnaire1" id="questionnaire1" onSubmit="return mult2();">
	<table border="0" width="786" id="table1" cellspacing="0" cellpadding="0" style="padding-left:10px">
		<tr style="background-color:#eeeeee">
			<td height="30">
			<p align="center">
			<font face="Verdana" style="font-size: 10pt; font-weight: 700" color="#000000">
			RWSS Scheme</font></td>
		</tr>
		
		<tr style="background-color:#eeeeee">
			<td align="center"><font face="Arial" style="font-size: 8.5pt" color="#000000">Page 1</font></td>
		</tr>
		<tr style="background-color:#eeeeee">
			<td height="19" colspan="2" align="center"><font face="Arial" style="font-size: 8.5pt" color="#000000">(This Web Application is More Compatible with Mozilla Firefox and Google Chrome)</font></td>
		</tr>
		<tr style="background-color:#eeeeee">
			<td><span style="font-size: 4pt">&nbsp;</span></td>
		</tr>
		<tr>
			<td bgcolor="#C5D8EB" height="29">
				<span class="style1" style="font-weight: 700">&nbsp;
				<font face="Arial" style="font-size: 8.5pt; color:#006699">1. Scheme 
				Details</font></span>			</td>
		</tr>
		<tr>
			<td>
			<table width="786" height="228" border="0" cellpadding="0" cellspacing="1" bgcolor="#eeeeee" id="table6">
				
				<tr>
					<td width="317" height="27">&nbsp;
						<font style="font-size: 8.5pt" face="Verdana" color="#000000">
						Type of the Scheme (As of Now)</font>					</td>
				  <td width="184"><font face="Verdana" style="font-size: 8.5pt" color="#000000">RWSS</font>
			      <input name="rwss" type="hidden" value="RWSS"></td>
				  <td width="111"><font face="Verdana" style="font-size: 8.5pt" color="#000000"><font color="#FF0000">*</font>Date&nbsp;&nbsp;</font></td>
				  <td width="233"><?php dpulldown('dob',$getdate['mday'],$getdate['mon'],$getdate['year']);?></td>
				</tr>
				<tr>
					<td width="317" height="30">
						<font face="Verdana" style="font-size: 8.5pt" color="#000000">&nbsp; 
						Name of the Schemes </font>					</td>
					<td colspan="3">
						<input type="text" name="name_scheme" id="name_scheme" size="30" height="18" class="txt">				  </td>
				</tr>
				<tr>
					<td width="317" height="31">
						<font face="Verdana" style="font-size: 8.5pt" color="#000000">&nbsp; 
						Year of Commissioning</font></td>
					<td colspan="3">
						<select size="1" name="year" id="year" class="txt">
						<option selected value="0">Not Provided</option>
						<?php 
						foreach($year_comm as $key=>$val)
						{
		   					echo "<option value=$val>$val</option>";
						}
						?>
						</select>				  </td>
				</tr>
				<tr>
					<td width="317" height="32">
						<font face="Verdana" style="font-size: 8.5pt" color="#000000">&nbsp; 
						Capital Cost (in <img src="images/26rup1.jpg" width="10"> Lakh)</font></td>
						<!--<font face="Rupee Foradian" size="3">`</font>-->
					<td colspan="3">
						<input type="text" name="capital_cost" id="capital_cost" size="30" height="18" class="txt" onBlur="float(this)">				  </td>
				</tr>
				<tr>
					<td width="317" height="35">&nbsp;
						<font face="Verdana" style="font-size: 8.5pt" color="#000000">
						Schemes Sanctioned Under </font>					</td>
					<td colspan="3">
						<select size="1" name="scheme_sactioned" id="scheme_sactioned" class="txt" onChange="enable_sanc1(true)">
						<option selected value="0">Select Scheme</option>
						<?php 
						foreach($scheme as $key=>$val)
						{
		   					echo "<option value=$val>$val</option>";
						}
						?>
					  </select>				  </td>
			  </tr>
				<tr>
				  <td width="317" height="26">&nbsp;</td>
					<td colspan="3">
						 <font style="font-size: 8pt" face="Verdana" color="#000000"> If Other then specify&nbsp;</font>
						 <input type="text" name="scheme_sactioned_other" id="scheme_sactioned_other" style="font-size: 8pt; font-family: Verdana; border-style: solid; border-width: 1px">				  </td>
				</tr>
			</table>		</td>
	</tr>
	
	<tr>
		<td bgcolor="#C5D8EB" height="29"><span class="style1">&nbsp;
		    <font style="font-size: 8.5pt; font-weight: 700; color:#006699" face="Arial">
			2. Location </font></span> </td>
	</tr>
	<tr>
		<td>
			<table border="0" width="786" id="table7" bgcolor="#eeeeee" cellspacing="1" cellpadding=             "0">
				<tr>
				  <td height="29"><font face="Verdana" style="font-size: 8.5pt" color="#000000"><font color="#FF0000">&nbsp;&nbsp;*</font>District</font>	</td>
				  <td colspan="3"><font id=district>
					    <select name="district" id="district" class="txt">
                          <option value="0">Select District</option>
                        </select>
					  </font><span id="districtLoader"></span>
					    <font id="factor"><input type="hidden" size="20" class="txt5"></font>
					    <input type="button" name="del" value="<<" onClick="return removeOption('block',document.getElementById('multiDist'));return removeOption('tehsil',document.getElementById('multiDist'))"/>
					    <font id=district>
						  <select name="multiDist" size="4" multiple="multiple" id="multiDist" style="font-family:Verdana; font-size:8pt" >
					      </select>
				      </font>					  </td>
			  </tr>
				<tr>
				  <td height="29"><font face="Verdana" style="font-size: 8.5pt" color="#000000">&nbsp;
							<font color="#FF0000">*</font>Block </font>	</td>
				  <td width="260"><font id=block>
							<select name="block" id="block" class="txt">
								<option value="0">==============</option>
							</select></font><span id="blockLoader"></span>
							<input type="button" name="del2" value="<<" onClick="return removeOption('panchayat',document.getElementById('multiBlock'))"/>
							<font id=block>
							<select name="multiBlock" size="4" multiple="multiple" id="multiBlock" style="font-family:Verdana; font-size:8pt"  >
                            </select>
				  </font></td>
			      <td width="71"><font face="Verdana" style="font-size: 8.5pt" color="#000000"><font color=                        	"#FF0000">*</font>Revenue &nbsp;&nbsp;Tehsil&nbsp;&nbsp;&nbsp;</font></td>
			      <td width="285"><font id=tehsil>
							<select name="tehsil" id="tehsil" class="txt">
								<option value="0">==============</option>
							</select></font><span id="tehsilLoader"></span>	
							<input type="button" name="del22" value="<<" onClick="return removeOption(' ',document.getElementById('multiTehsil'))"/><font id=district>
							<select name="multiTehsil" size="4" multiple="multiple" id="multiTehsil" >
                            </select>
				  </font></td>
			  </tr>
				<tr>
					<td width="229" height="29">
						<font face="Verdana" style="font-size: 8.5pt" color="#000000">&nbsp;                         <font color="#FF0000">*</font>Grampanchayat</font>					</td>
				  <td colspan="3"><font id=panchayat>
						<select name="panchayat" id="panchayat" class="txt">
						<option value="0">==============</option>
						</select></font><span id="panchayatLoader"></span>
			            <input type="button" name="del222" value="<<" onClick="return removeOption('village',document.getElementById('multiPanchayat'))"/>
			            <font id=district>
			            <select name="multiPanchayat" size="4" multiple="multiple" id="multiPanchayat" style="font-family:Verdana; font-size:8pt" >
                        </select>
	              </font></td>
				</tr>
				<tr>
					<td width="229">&nbsp;
						<font style="font-size: 8.5pt" face="Verdana" color="#000000"><font color="#FF0000">*</font>Villages Covered Names(MH)</font>					</td>
				    <td colspan="3"><font id=village>
						<select name="village" id="village" class="txt">
						<option value="0">==============</option>
						</select></font><span id="villageLoader"></span>
				        <input type="button" name="del223" value="<<" onClick="return removeOption('habit',document.getElementById('multiVillage'))"/>
				        <font id=district>
				        <select name="multiVillage" size="4" multiple="multiple" id="multiVillage" style="font-family:Verdana; font-size:8pt" >
                        </select>
		          </font></td>
				</tr>
				<tr>
					<td width="229" height="28">&nbsp;				  </td>
					<td colspan="5"><div id=cvc style="display:none">
						<input type="text" size="23" class="txt" value="">	
				  </div></td>
				</tr>
				<tr>
					<td width="229" height="24">&nbsp;
						<font style="font-size: 8.5pt" face="Verdana" color="#000000"><font color=                        "#FF0000">*</font>Form Id</font></td>
					<td colspan="3"><div id="form_id">
						<input type="text" size="23" class="txt" value=""><font face="Verdana" style="font-size: 8.5pt" color="#000000">Keep this form Id for further reference</font></div>				  </td>
				</tr>
				<!--<tr>
					<td width="320" height="28">&nbsp;
						<font style="font-size: 8.5pt" face="Verdana" color="#000000"><font color=                        "#FF0000">*</font>Census Village Code</font></td>
					<td width="529"><font id=cvc>
						<input type="text" size="23" class="txt" value="">	
						</font>
				  </td>
				</tr>-->
				<tr>
					<td height="31" colspan="6" bgcolor="#C5D8EB">&nbsp;
					  <span style="color: #006699"><font style="font-size: 8.5pt; font-weight: 700" face="Arial">
					3.Other Habitations (OH) covered</font></span></td>
				</tr>
		  </table>		</td>
	</tr>
	<tr>
		<td>
			<table border="0" width="786" id="table4" cellspacing="1" cellpadding="0" bgcolor=            "#eeeeee">
				<tr>
					<td align="center" width="20%" bgcolor="#cccccc" height="47">
						<font face="Verdana" style="font-size: 8.5pt" color="#990000">                        Name of OH</font></td>
					<td align="center" width="19%" bgcolor="#cccccc" height="47">
						<font style="font-size: 8.5pt" face="Verdana" color="#990000">
						Code No. (As per IMIS)</font></td>
						<td align="center" width="8%" rowspan="" bgcolor="#cccccc">
						<font style="font-size: 8.5pt; font-style: normal" face="Verdana" color="#990000">Type MH/ OH</font></td>
					    <td align="center" width="9%" rowspan="" bgcolor="#cccccc"><font style="font-size: 8.5pt; font-style: normal" face="Verdana" color="#990000">HP</font></td>
				        <td align="center" width="8%" rowspan="" bgcolor="#cccccc"><font style="font-size: 8.5pt; font-style: normal" face="Verdana" color="#990000">SP</font></td>
			        <td align="center" width="16%" bgcolor="#cccccc" height="47">
						<font face="Verdana" style="font-size: 8.5pt" color="#990000">
						Actual Status at Site (A/NA)</font></td>
				    <td align="center" width="20%" bgcolor="#cccccc"><font face="Verdana" style="font-size: 8.5pt" color="#990000">Coverd/Not Covered(C/NC)</font></td>
				</tr>	
		  </table>		</td>
	</tr>
	<tr>
		<td><div id="habit"></div></td>
	</tr>
	<tr>
		<td width="786" height="29" bgcolor="#C5D8EB">&nbsp;
			<span style="font-weight: 700">
			<font face="Arial" style="font-size: 8.5pt" color="#006699">4. Population</font></span>       </td>
	</tr>
	<tr>
		<td>
			<table border="0" width="786" id="table8" bgcolor="#eeeeee" cellspacing="1" cellpadding=            "0">
				<tr>
					<td colspan="4">
						<span style="font-size: 4pt">&nbsp;</span>					</td>
				</tr>
				<tr>
				
					<td width="172">
						<font face="Verdana" style="font-size: 8.5pt" color="#000000">&nbsp; 
						Population Benefited </font>					</td>
					<td width="202">
					<div id="population_benefited">
				    <input type="text" class="txt5" onBlur="numeric(this)" size="20">
				  	</div>
						<!--<input type="text" name="popul_benefited" id="popul_benefited" size="20" class="txt5" onBlur="mult();numeric(this)">-->				  </td>
					<td width="126">
						<font face="Verdana" style="font-size: 8.5pt" color="#000000">
						Present Population&nbsp;&nbsp;&nbsp; </font>					</td>
				  <td width="349">
				  <div id="present_population">
					<input type="text" size="20" class="txt5">
					</div>
				  <!--<input type="text" name="present_popul" id="present_popul" size="20" class="txt5" onBlur="numeric(this)" readonly><font style="font-size: 8.5pt" face="Verdana" color="#000000">1.29 times of Population Benefited</font>-->				  </td>
				</tr>
				<tr>
					<td width="172">
						<font face="Verdana" style="font-size: 8.5pt" color="#000000">&nbsp; 
						(as per 2001 census)</font></td>
					<td width="202">&nbsp;</td>
					<td width="172">
						<font face="Verdana" style="font-size: 8.5pt" color="#000000">(2010)</font></td>
					<td width="349">&nbsp;</td>
				</tr>
		  </table>		</td>
	</tr>
	<tr>
		<td>&nbsp;</td>
	</tr>
	<tr>
		<td width="786" height="28" bgcolor="#C5D8EB">&nbsp;<span style="font-weight: 700">
			<font face="Arial" style="font-size: 8.5pt" color="#006699">5. Sources of Water Supply</font></span></td>
	</tr>
	<tr>
		<td colspan="6">
			<table border="0" width="786" id="table10" bgcolor="#eeeeee" cellspacing="1" cellpadding="0">
				<tr>
					<td>
						<span style="font-size: 4pt">&nbsp;</span></td>
				</tr>
				<tr>
					<td width="172">
						<font face="Verdana" style="font-size: 8.5pt" color="#000000">&nbsp; 
						No. of Sources</font></td>
					<td width="202"><input type="text" name="num_source" id="num_source" size="20" onBlur="source_dtls();numeric(this)" class="txt5"></td>
					<td width="198">&nbsp;</td>
					<td width="276">&nbsp;</td>
				</tr>
				<tr>
					<td colspan="4">
						<font face="Verdana" style="font-size: 8.5pt" color="#000000">&nbsp;</font>                    </td>
				</tr>
				
				<tr>
					<td colspan="6"><div id="source_dtls"></div></td>
				</tr>
		  </table>		</td>
	</tr>
	<tr>
		<td>&nbsp;</td>
	</tr>
	<tr>
		<td width="786" height="29" bgcolor="#C5D8EB">&nbsp;
			<span style="font-weight: 700"><font face="Arial" style="font-size: 8.5pt" color="#006699">6. Hand pumps &amp; Single Phase pumps installed (on above	mentioned if any)            </font></span>		</td>
	</tr>
	<tr>
		<td>
			<table border="0" width="786" id="table11" bgcolor="#eeeeee" cellspacing="1" cellpadding=            "0">
				<tr>
					<td colspan="4"><span style="font-size: 4pt">&nbsp;</span></td>
				</tr>
				<tr>
					<td width="167">
						<font face="Verdana" style="font-size: 8.5pt" color="#000000">&nbsp; 
						HP Nos.</font>					</td>
					<td width="208"><div id="hpno">
						<!--<input type="text" name="hp_no" id="hp_no" size="20" class="txt5" onBlur="HP_source_dtls();numeric(this);">-->
						<input type="text" name="hp_no" id="hp_no" size="20" class="txt5" readonly />
						</div>				  </td>
					<td width="198">&nbsp;</td>
					<td width="273">&nbsp;</td>
				</tr>
				<tr>
				  <td colspan="4"><div id="source_dtls_hp"></div></td>
			  </tr>
				<tr>
					<td width="167">
						<font face="Verdana" style="font-size: 8.5pt" color="#000000">&nbsp; 
						SP Nos.</font>					</td>
					<td width="208"><div id="spno">
						<!--<input type="text" name="sp_no" id="sp_no" size="20" class="txt5" onBlur="SP_source_dtls();numeric(this);">-->
						<input type="text" name="sp_no" id="sp_no" size="20" class="txt5" readonly />
						</div>				  </td>
					<td width="198">&nbsp;</td>
					<td width="273">&nbsp;</td>
				</tr>
				<tr>
				  <td colspan="4"><div id="source_dtls_sp"></div></td>
			  </tr>
		  </table>		</td>
	</tr>
	<tr>
		<td>&nbsp;</td>
	</tr>
	
	<tr>
		<td>
			<p align="center">
			<input type="submit" value="Click for Continue" name="submit" style="font-family: Verdana; " onClick="return validate1()">&nbsp;</p>		</td>
	</tr>
	<tr>
		<td>&nbsp;</td>
	</tr>
	<tr>
		<td>&nbsp;</td>
	</tr>
</table>
</form>		
</div>


</body>
</html>